package com.hhc.repository;

import com.hhc.entity.SystemConfigDO;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * <p>
 *   系统配置持久化操作接口
 * </p>
 * @author pc
 */
public interface SystemConfigRepository extends JpaRepository<SystemConfigDO, Long> {

    @EntityGraph(attributePaths = {"configKey", "configValue", "description"})
    SystemConfigDO findByConfigKey(String configKey);
}